package com.cloudkinto.service.fbaaaaaa;

import com.cloudkinto.controller.fbaaaaaa.vo.TailTrucksAddReq;
import com.cloudkinto.controller.fbaaaaaa.vo.TailTrucksUpdateStatusReq;
import com.cloudkinto.entity.TailTrucksDo;
import com.baomidou.mybatisplus.extension.service.IService;

import com.cloudkinto.common.web.PageResult;
import com.cloudkinto.common.web.SingleResult;
import com.cloudkinto.service.fbaaaaaa.vo.TailTrucksPageRes;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  service接口
 * </p>
 * @author ding
 * @since 2020-11-24
 */
public interface TailTrucksService extends IService<TailTrucksDo> {

    SingleResult addInit();

    Object add(TailTrucksAddReq req, Long userId);

    void jointFbaTrucks(Long orderId, Long userId);

    SingleResult updateInit(Long id);

    Object update(Object updateVo, Long userId);

    int delete(Long id, Long userId);

    Object detail(Long id);

    SingleResult pageInit();

    List<TailTrucksPageRes> getList(Map<String, String> map);

    PageResult getListPage(Map<String, String> map);

    void updateStatus(TailTrucksUpdateStatusReq req);
}
